package cn.joechow.quickcode.support.model;

/**
 * Created by JoeChow
 * on 2017/1/23.
 */
public class MethodModel {

    private String annotationList;

    private String limit = "public";

    private boolean isStatic = false;

    private boolean isFinal = false;

    private String returnClassName;

    private String name;

    private String body;

    public MethodModel(String returnClassName, String name) {
        this.returnClassName = returnClassName;
        this.name = name;
    }

    public MethodModel(String limit, String returnClassName, String name) {
        this.limit = limit;
        this.returnClassName = returnClassName;
        this.name = name;
    }


    public String getAnnotationList() {
        return annotationList;
    }

    public MethodModel setAnnotationList(String annotationList) {
        this.annotationList = annotationList;
        return this;
    }

    public String getLimit() {
        return limit;
    }

    public MethodModel setLimit(String limit) {
        this.limit = limit;
        return this;
    }

    public boolean isStatic() {
        return isStatic;
    }

    public MethodModel setStatic(boolean aStatic) {
        isStatic = aStatic;
        return this;
    }

    public boolean isFinal() {
        return isFinal;
    }

    public MethodModel setFinal(boolean aFinal) {
        isFinal = aFinal;
        return this;
    }

    public String getReturnClassName() {
        return returnClassName;
    }

    public MethodModel setReturnClassName(String returnClassName) {
        this.returnClassName = returnClassName;
        return this;
    }

    public String getName() {
        return name;
    }

    public MethodModel setName(String name) {
        this.name = name;
        return this;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
